Getting the Operational State of the BGP Peers

You can get an operational state of the BGP peers that belong to the tenant VRF (non-default VRF).

About this task

Follow this procedure to get an operational state of a BGP peer.

Procedure

  1. Run the following command to create a BGP peer on tenant VRF:
    efa inventory device register --ip 10.20.246.23,10.20.246.24 --username admin --password password
    efa inventory device register --ip 10.20.246.21,10.20.246.22 --username admin --password password
    efa inventory device register --ip 10.20.246.14 --username admin --password password
    efa fabric create --name fabric4 --type clos
    efa fabric setting update --name fabric4 --vni-auto-map No --backup-routing-enable yes
    efa fabric device add --ip 10.20.246.14 --role spine --name fabric4 --username admin --password password
    efa fabric device add --ip 10.20.246.23 --role leaf  --name fabric4 --username admin --password password
    efa fabric device add --ip 10.20.246.24 --role leaf  --name fabric4 --username admin --password password
    efa fabric device add --ip 10.20.246.22 --role border-leaf --name fabric4 --username admin --password password
    efa fabric device add --ip 10.20.246.21 --role border-leaf --name fabric4 --username admin --password password
    efa fabric configure --name fabric4
    
    
    efa tenant create --name tenant2 --port 10.20.246.23[0/21-24],10.20.246.24[0/21-24] --vlan-range 100-200 --l2-vni-range 12000-13000  --vrf-count 25 --l3-vni-range 8000-9000
    
    efa tenant po create --name po101 --port 10.20.246.23[0/22],10.20.246.24[0/22] --speed 10Gbps --negotiation active --tenant tenant2
    
    efa tenant vrf create --name vrf101 --tenant tenant2 --rt-type import --rt 101:102 --rt-type export --rt 105:104
    efa tenant vrf create --name vrf102 --tenant tenant2 --rt-type import --rt 104:105 --rt-type export --rt 200:108 --local-asn 34566 --ipv4-static-route-next-hop 10.20.246.23,50.0.0.0/24,20.0.0.2 --ipv6-static-route-next-hop 10.20.246.23,3001:1::/64,01::2
    
    efa tenant epg create --name epg1 --ctag-range  100-102 --po po101 --port 10.20.246.23[0/23] --switchport-mode trunk --tenant tenant2 --vrf vrf102 --anycast-ip 100:10.10.10.254/24 --anycast-ip 101:10.10.1.254/24 --anycast-ip 102:10.10.2.254/24 --anycast-ipv6 100:3001:10:0:1::1/64  --anycast-ipv6 101:3001:10:0:2::1/64 --anycast-ipv6 102:3002:10:0:3::1/64 --local-ip 100,10.20.246.23:121.10.1.2/24 --local-ip 101,10.20.246.23:121.10.2.2/24 --local-ipv6 102,10.20.246.23:121:a::2/64 --local-ip 100,10.20.246.24:121.10.1.3/24 --local-ip 101,10.20.246.24:121.10.2.3/24 --local-ipv6 102,10.20.246.24:121:a::3/64
    
    efa tenant service bgp peer-group create --tenant tenant2 --name "pg1" 
       --pg-name 10.20.246.23:peerb1 
       --pg-asn 10.20.246.23,peerb1:4294967295 
       --pg-bfd-enable 10.20.246.23,peerb1:true 
       --pg-bfd 10.20.246.23,peerb1:30000,30000,50 
       --pg-next-hop-self 10.20.246.23,peerb1:true 
       --pg-update-source-ip 10.20.246.23,peerb1:3.3.3.3 
       --pg-name 10.20.246.24:peerb1 
       --pg-asn 10.20.246.24,peerb1:4294967295 
       --pg-bfd-enable 10.20.246.24,peerb1:true 
       --pg-bfd 10.20.246.24,peerb1:30000,30000,50 
       --pg-next-hop-self 10.20.246.24,peerb1:true 
       --pg-update-source-ip 10.20.246.24,peerb1:3.3.3.3
       --pg-ipv6-uc-nbr-activate <device-ip,pg-name:true>
    
    efa tenant service bgp peer create --name B3 --tenant tenant2 
       --ipv4-uc-nbr 10.20.246.23,vrf102:121.10.1.3,34566 
       --ipv4-uc-nbr 10.20.246.23,vrf102:121.10.2.3,34566 
       --ipv6-uc-nbr 10.20.246.23,vrf102:121:a::3,34566 
       --ipv4-uc-nbr 10.20.246.24,vrf102:121.10.1.2,34566 
       --ipv4-uc-nbr 10.20.246.24,vrf102:121.10.2.2,34566 
       --ipv6-uc-nbr 10.20.246.24,vrf102:121:a::2,34566
    
    efa tenant epg create --name epg2 --ctag-range  105-107 
       --po po101 --port 10.20.246.23[0/24] 
       --switchport-mode trunk 
       --tenant tenant2 --vrf vrf101 --anycast-ip 105:11.11.10.254/24 
       --anycast-ip 106:11.11.1.254/24 
       --anycast-ip 107:11.11.2.254/24 
       --anycast-ipv6 105:1001:11:0:1::1/64  
       --anycast-ipv6 106:1001:11:0:2::1/64 
       --anycast-ipv6 107:1002:11:0:3::1/64 
       --local-ip 105,10.20.246.23:141.10.1.2/24 
       --local-ip 106,10.20.246.23:141.10.2.2/24 
       --local-ipv6 107,10.20.246.23:141:a::2/64 
       --local-ip 105,10.20.246.24:141.10.1.3/24 
       --local-ip 106,10.20.246.24:141.10.2.3/24 
       --local-ipv6 107,10.20.246.24:141:a::3/64
    
    efa tenant service bgp peer create --name B2 --tenant tenant2 
       --ipv4-uc-nbr 10.20.246.23,vrf101:141.10.1.3,65000 
       --ipv4-uc-nbr 10.20.246.23,vrf101:141.10.2.3,65000 
       --ipv6-uc-nbr 10.20.246.23,vrf101:141:a::3,65000 
       --ipv4-uc-nbr 10.20.246.24,vrf101:141.10.1.2,65000 
       --ipv4-uc-nbr 10.20.246.24,vrf102:141.10.2.2,65000 
       --ipv6-uc-nbr 10.20.246.24,vrf102:141:a::2,65000
    
    efa tenant create --name tenant3 --port 10.20.246.23[0/11-14],10.20.246.24[0/11-14] --vlan-range 30-40 --l2-vni-range 2000-3000  --vrf-count 25 --l3-vni-range 5000-6000
    
    efa tenant po create --name po3 --port 10.20.246.23[0/11],10.20.246.24[0/11] --speed 10Gbps --negotiation active --tenant tenant3
    
    efa tenant vrf create --name vrf31 --tenant tenant3 --rt-type import --rt 301:302 --rt-type export --rt 305:304
    efa tenant vrf create --name vrf32 --tenant tenant3 --rt-type import --rt 304:305 --rt-type export --rt 300:308 --local-asn 34566 --ipv4-static-route-next-hop 10.20.246.23,30.0.0.0/24,30.0.0.2 --ipv6-static-route-next-hop 10.20.246.23,5001:1::/64,01::2
    
    efa tenant epg create --name epg3 --ctag-range  30-32 --po po3 --port 10.20.246.23[0/13] --switchport-mode trunk --tenant tenant3 --vrf vrf32 --anycast-ip 30:30.30.10.254/24 --anycast-ip 32:30.10.1.254/24 --anycast-ip 31:30.10.2.254/24 --anycast-ipv6 30:5001:10:0:1::1/64  --anycast-ipv6 32:5001:10:0:2::1/64 --anycast-ipv6 31:5002:10:0:3::1/64 --local-ip 30,10.20.246.23:131.10.1.1/24 --local-ip 32,10.20.246.24:131.10.1.2/24 --local-ipv6 31,10.20.246.23:131:a::1/64
    efa tenant epg create --name epg32 --ctag-range  35-37 --po po3 --port 10.20.246.23[0/14] --switchport-mode trunk --tenant tenant3 --vrf vrf31 --anycast-ip 35:11.11.10.254/24 --anycast-ip 36:11.11.1.254/24 --anycast-ip 37:11.11.2.254/24 --anycast-ipv6 35:301:11:0:1::1/64  --anycast-ipv6 36:301:11:0:2::1/64 --anycast-ipv6 37:302:11:0:3::1/64 --local-ip 35,10.20.246.23:131.10.1.1/24 --local-ip 36,10.20.246.24:131.10.1.2/24 --local-ipv6 37,10.20.246.23:131:a::1/64
    
    efa tenant service bgp peer-group create --tenant tenant3 --name "pg3" 
       --pg-name 10.20.246.23:peerb3 --pg-asn 10.20.246.23,peerb3:4294967295 
       --pg-bfd-enable 10.20.246.23,peerb3:true 
       --pg-bfd 10.20.246.23,peerb3:30000,30000,50 
       --pg-next-hop-self 10.20.246.23,peerb3:true 
       --pg-update-source-ip 10.20.246.23,peerb3:31.3.3.3 
       --pg-name 10.20.246.24:peerb3 
       --pg-asn 10.20.246.24,peerb3:4294967295 
       --pg-bfd-enable 10.20.246.24,peerb3:true 
       --pg-bfd 10.20.246.24,peerb3:30000,30000,50 --pg-next-hop-self 10.20.246.24,peerb3:true 
       --pg-update-source-ip 10.20.246.24,peerb3:3.3.3.3
       --pg-ipv6-uc-nbr-activate <device-ip,pg-name:true
    efa tenant service bgp peer create --name B2 --tenant tenant3 
       --ipv4-uc-nbr 10.20.246.23,vrf31:131.10.1.2,4200000000 
       --ipv4-uc-nbr 10.20.246.24,vrf31:131.10.1.1,4200000000  
       --ipv6-uc-nbr 10.20.246.24,vrf31:131:a::1,4200000000
  2. Run the following command to get the operational state of BGP peers belonging to both default VRF and Tenant VRF:
    efa tenant service bgp peer operational show --tenant <tenant-name> --vrf <vrf-name>
  3. Run the following command to get the operational state of BGP peers for a given tenant VRF:
    efa tenant service bgp peer operational show --tenant tenant11 --vrf v1
  4. Run the following command to get the operational state of BGP peers for a given tenant:
    efa tenant service bgp peer operational show --tenant tenant11
  5. Run the following command to get the operational state of BGP peers for all tenant:
    efa tenant service bgp peer operational show